﻿using System;
using System.Text;
using System.Collections.Generic;

namespace Measure
{
  internal static class UIItems
  {
    public static void Add(Action updateCmd)
    {
      CmdTarges_.AddFirst(updateCmd);
    }

    public static void UpdateCmdUI(object sender, EventArgs e)
    {
      LinkedListNode<Action> firstNode = CmdTarges_.First;
      CmdTarges_.First.Value();
      CmdTarges_.RemoveFirst();
      CmdTarges_.AddLast(firstNode);
    }

    private static LinkedList<Action> CmdTarges_ = new LinkedList<Action>(); 
  }
}
